Namespace("sketch.ui.iphone");

(function(fwk, ui) {
    ui.iphone.Calendar = klass(fwk.ImageElement, (function() {
        return {
            _constructor:function() {
                this.src('/img/ios/calendar.png');
                this.shadow(new fwk.Shadow(0, 10, '#bbbbbb', 10));
            },
            drawSelf:function(context){
                var x = this.left(),
                    y = this.top(),
                    w = this.width(),
                    h = this.height();
                this.shadow().apply(context, function(context){
                    context.rectPath(x, y+h, w, 20);
                    context.clip();
                    context.fillStyle = 'white';
                    context.fillRect(x, y,w, h);
                });
                this.SuperKlass.drawSelf.call(this, context);
            },
            resizeDimensions:function(){
                return fwk.ResizeDimension.None;
            }
        };
    })());
})(sketch.framework, sketch.ui);